package com.wondersgroup.fjzlpt.org.controller.rest.gzt;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.quick.framework.boot.web.utils.RequestUtils;
import com.wondersgroup.fjzlpt.org.service.inter.gzt.GztService;

/**
 * 工作台restController
 * @author gzb   
 * 2017年5月23日
 */

@RestController
@RequestMapping("gzt")
public class GztRestController {

	@Autowired
	private GztService gztService;
	
	
	/**
	 * 签约信息数量的统计查询
	 * @param request
	 * @return
	 */
	@RequestMapping("queryCount")
	public JSONObject queryCount(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryCount(map);
	}
	
	/**
	 * 分页查询"已签约"居民数据
	 * @param request
	 * @return
	 */
	@RequestMapping("queryYqyjmDataByPage")
	public JSONObject queryYqyjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryYqyjmDataByPage(map);
	}
	
	/**
	 * 分页查询"已预约"居民数据
	 * @param request
	 * @return
	 */
	@RequestMapping("queryYyyjmDataByPage")
	public JSONObject queryYyyjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryYyyjmDataByPage(map);
	}
	
	/**
	 * 分页查询"已转诊"居民数据（转介成功的居民）
	 * @param request
	 * @return
	 */
	@RequestMapping("queryYzzjmDataByPage")
	public JSONObject queryYzzjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryYzzjmDataByPage(map);
	}
	
	/**
	 * 分页查询"已履约"居民数据
	 * @param request
	 * @return
	 */
	@RequestMapping("queryYlyjmDataByPage")
	public JSONObject queryYlyjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryYlyjmDataByPage(map);
	}
	
	/**
	 * 分页查询"有效签约"居民数据
	 * @param request
	 * @return
	 */
	@RequestMapping("queryYxqyjmDataByPage")
	public JSONObject queryYxqyjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryYxqyjmDataByPage(map);
	}
	
	
	
	
	
	
	/**
	 * 分页查询"预签约"居民数据
	 * wqy:未签约
	 * @param request
	 * @return
	 */
	@RequestMapping("queryWqyjmDataByPage")
	public JSONObject queryWqyjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryWqyjmDataByPage(map);
	}
	
	/**
	 * 分页查询"到期提醒"居民的数据
	 * @param request
	 * @return
	 */
	@RequestMapping("queryDqtxjmDataByPage")
	public JSONObject queryDqtxjmDataByPage(HttpServletRequest request){
		Map<String, String> map = RequestUtils.GetParameterMap(request);
		return gztService.queryDqtxjmDataByPage(map);
	}
	
}
